package com.blandware.atleap.webapp.form.core;

import javax.servlet.http.HttpServletRequest;
import com.blandware.atleap.webapp.form.BaseForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import java.util.Map;
import java.util.HashMap;

/**
 * @struts.form name="contentFieldForm" 
 */
public  class ContentFieldForm
    extends    BaseForm
    implements java.io.Serializable
{

    protected String id;

    protected String version;

    protected String identifier;

    protected String index;

    protected String ownerId;

    protected String type;

    /** Default empty constructor. */
    public ContentFieldForm() {}

    public String getId()
    {
        return this.id;
    }

   /**
    */
    public void setId(String id)
    {
        this.id = id;
    }

    public String getVersion()
    {
        return this.version;
    }

   /**
    */
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getIdentifier()
    {
        return this.identifier;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator type="mask" msgkey="core.commons.errors.contentFieldIdentifier"
    * @struts.validator-args arg0resource="core.contentField.form.identifier"
    * @struts.validator-var name="mask" value="^([0-9a-zA-Z\_]+(\.|\-)?)*[0-9a-zA-Z\_]+$"
    */
    public void setIdentifier(String identifier)
    {
        this.identifier = identifier;
    }

    public String getIndex()
    {
        return this.index;
    }

   /**
    * @struts.validator type="float"
    * @struts.validator-args arg0resource="core.contentField.form.index"
    */
    public void setIndex(String index)
    {
        this.index = index;
    }

    public String getOwnerId()
    {
        return this.ownerId;
    }

   /**
    */
    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public String getType()
    {
        return this.type;
    }

   /**
    * @struts.validator type="required"
    */
    public void setType(String type)
    {
        this.type = type;
    }

    /**
     * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping,
     *                                                javax.servlet.http.HttpServletRequest)
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        // reset any boolean data types to false

        // reset all linking properties to null

        this.ownerId = null;

// reset all mapped properties to default values

    }

}
